package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author author
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_comment")
@ApiModel(value="Comment对象", description="评论表")
public class CommentDTO implements Serializable {

    private static final long serialVersionUID = 1L;



    @ApiModelProperty(value = "被评论者id(作者)",required = true)
    private Long commentUserId;



    @ApiModelProperty(value = "内容",required = true)
    private String content;



    @ApiModelProperty(value = "帖子id",required = true)
    private Long parentId;

    @ApiModelProperty(value = "区分针对是帖子还是作品，1为帖子，2为作品",required = true)
    private Integer type;




}
